import { nFormatter } from '@/utils/nFormatter'

export default {
  backgroundColor: '#1c213e',
  title: {
    textStyle: {
      fontSize: 12
    }
  },
  xAxis: {
    scale: true,
    splitLine: {
      lineStyle: {
        color: '#31597d',
        type: 'dashed'
      }
    },
    nameTextStyle: {
      color: '#fff'
    }
  },
  yAxis: {
    name: '',
    scale: true,
    splitNumber: 1,
    type: 'value',
    splitLine: {
      lineStyle: {
        color: '#31597d',
        type: 'dashed'
      }
    },
    nameTextStyle: {
      color: '#fff'
    },
    axisLabel: {
      formatter: function (val) {
        return nFormatter(val)
      }
    }
  },
  series: [],
  grid: {
    top: 30,
    left: '9%',
    right: '5%',
    bottom: 30
  }
}
